package com.heima.apis.user;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("leadnews-user")
public interface UserFeignClient {
    /**
     * 根据用户id查询用户信息
     * @param id
     * @return
     */
    @GetMapping("/api/v1/user/{id}")
    public ResponseResult<ApUser> findUserById(@PathVariable("id") Long id);
}
